package homework.oo2.AnimalExercise01;

public class AnimalTest {
    public static void main(String[] args) {
        Dog d1 = new Dog();
        d1.name="大黄";
        d1.age=1;
        d1.color="黄色";
        d1.eat();
        d1.drink();
        d1.lookHome();

        System.out.println("========================");
        Dog d2 = new Dog("大红",2,"红色");
        d2.eat();
        d2.drink();
        d2.lookHome();

        System.out.println("========================");
        Dog d3 = new Dog("大紫",3,"紫色");
        d3.eat();
        d3.drink();
        d3.lookHome();

        System.out.println("========================");
        Chick c1 = new Chick("红红",1,"红色");
        c1.eat();
        c1.drink();
        c1.layEggs();

        System.out.println("========================");
        Chick c2 = new Chick("绿绿",2,"绿色");
        c2.eat();
        c2.drink();
        c2.layEggs();

        System.out.println("========================");
        Chick c3 = new Chick("白白",3,"白色");
        c3.eat();
        c3.drink();
        c3.layEggs();

        System.out.println("========================");
        Fish f1 = new Fish("蓝蓝",4,"蓝色");
        f1.eat();
        f1.drink();

        System.out.println("========================");
        Fish f2 = new Fish("粉粉",5,"粉色");
        f2.eat();
        f2.drink();

    }
}
